﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AP.Framework.Infrastructure.Repositories.IRepositories;
using AP.Framework.Infrastructure.Entities;

namespace AP.Web.Controllers
{
    public class JobController : Controller
    {
        IJob _job;
        public JobController(IJob job)
        {
            _job = job;
        }
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult ViewDetails(int? jobId)
        {
            cms_Job model = _job.GetAll().Where(p => p.ID == jobId).FirstOrDefault();
            return View(model);

        }
    }
}
